home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PsL Monthly 1993 December
/
PSL Monthly Shareware CD-ROM (December 1993).iso
/
prgmming
/
dos
/
c
/
cmprss.exe
/
COMPRSS.DOC
< prev
next >
Wrap
Text File
|
1993-01-28
|
915b
|
22 lines
CP.EXE compresses or decompresses individual files:
CP c <infile> <outfile> compresses the <infile>, writing out <outfile>
CP d <infile> <outfile> uncompresses <infile>, writing out <outfile>
CPTEST tests the various forms of reading and writing to files, including
all the get, getline, write, put, and overloaded functions. Use this
utility to validate any changes that you make to the stream classes.
CPTEST generates two files, TEST.OUT and UNCOMP: the compressed data and
the raw data, respectively.
Several functions which are meaningless in a compressed file (such as
file positioning, putting back data, etc) have been defined in these
classes but are "do nothing" functions to prevent the compressed data
from being corrupted.
The compression algorithm comes from The C Users Journal, October 1992,
article written by Ed Ross.
Marc-Thomas Clifton
CompuServe address: 71754,1204